package com.example.androidshixun.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.example.androidshixun.R;
import com.example.androidshixun.utils.WebViewUtils;

public class Tab3Fragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater,
                             @Nullable ViewGroup container,
                             @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_tab_3_layout, container, false);

        WebView webView = view.findViewById(R.id.web_view);
        WebViewUtils.setWebViewSettings(webView);
        WebViewUtils.setWebViewClient(webView);
        webView.loadUrl("http://m.v.qq.com");
        return view;
    }

}
